/**
 * 2010(c) Copyright Oceansoft Information System Co.,LTD. All rights reserved.
 * <p>
 * Compile: JDK 1.6+
 * <p>
 * 版权所有(C)：江苏欧索软件有限公司
 * <p>
 * 公司名称：江苏欧索软件有限公司
 * <p>
 * 公司地址：中国苏州科技城青山路1号
 * <p>
 * 网址: http://www.oceansoft.com.cn
 * <p>
 * 版本: 苏州公安统一用户管理平台1.0
 * <p>
 * 作者: sunj
 * <p>
 * 文件名:SysDept.java
 * <p>
 * 类产生时间: 2012-5-31 上午16:30:25
 * <p>
 * 所在组 : 苏州公安统一用户管理平台
 * <p>
 * 所在部门: 电信/国土——技术二部
 * <p>
 * <p>
 */
package com.oceansoft.core.domain;

/**
 * 部门信息
 * 
 * @author sunj
 * 
 *         2012-5-31下午04:42:33
 */
public class SysDept implements Comparable<SysDept> {

	private long dbId;
	// 部门编号
	private String deptId;
	// 部门名称
	private String name;
	// 上级部门编号
	private String parentId;
	// 结构层级，顶级部门为ROOT
	private int deep;
	// 部门别名
	private String alias;
	// 备注信息
	private String remark;
	// 排序顺序
	private int orderNum;

	private boolean open;

	private boolean isParent;
	// 上级部门名称
	private String parentName;
	// 是否可以拖动
	private boolean drag;
	/** 用户总数 */
	private Integer userTotal = 0;
	/**驻外部门ID*/
	private String overDistrictId;
	/**驻外部门名称*/
	private String overDistrictName;
	/**个人嘉奖个数*/
	private int person_reward=0;
	/** 占比*/
	private float percentage;

	public String getOverDistrictId() {
		return overDistrictId;
	}

	public void setOverDistrictId(String overDistrictId) {
		this.overDistrictId = overDistrictId;
	}

	public String getOverDistrictName() {
		return overDistrictName;
	}

	public void setOverDistrictName(String overDistrictName) {
		this.overDistrictName = overDistrictName;
	}

	/**
	 * 简拼
	 */
	private String jpin;

	/**
	 * 图标位置
	 */
	private String icon;

	/**
	 * 应用系统编号
	 */
	private String appId;

	public SysDept() {
		super();
	}

	public String getJpin() {
		return jpin;
	}

	public void setJpin(String jpin) {
		this.jpin = jpin;
	}

	public SysDept(long dbId, String deptId, String name, String parentId, int deep, String alias, String remark,
			int orderNum, boolean open, boolean isParent, String parentName, String appId) {
		super();
		this.dbId = dbId;
		this.deptId = deptId;
		this.name = name;
		this.parentId = parentId;
		this.deep = deep;
		this.alias = alias;
		this.remark = remark;
		this.orderNum = orderNum;
		this.open = open;
		this.isParent = isParent;
		this.parentName = parentName;
		this.appId = appId;
	}

	public SysDept(String deptId, String name, String parentId, int deep, String alias, String remark, int orderNum,
			boolean open, boolean isParent, String appId) {
		super();
		this.deptId = deptId;
		this.name = name;
		this.parentId = parentId;
		this.deep = deep;
		this.alias = alias;
		this.remark = remark;
		this.orderNum = orderNum;
		this.open = open;
		this.isParent = isParent;
		this.appId = appId;
	}

	public long getDbId() {
		return dbId;
	}

	public void setDbId(long dbId) {
		this.dbId = dbId;
	}

	public int getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public boolean getIsParent() {
		return isParent;
	}

	public void setIsParent(boolean isParent) {
		this.isParent = isParent;
	}

	public boolean isOpen() {
		return open;
	}

	public void setOpen(boolean open) {
		this.open = open;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public boolean getDrag() {
		return drag;
	}

	public void setDrag(boolean drag) {
		this.drag = drag;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getDeep() {
		return deep;
	}

	public void setDeep(int deep) {
		this.deep = deep;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public void setParent(boolean isParent) {
		this.isParent = isParent;
	}

	@Override
	public int compareTo(SysDept sysDept) {
		return (int) (Long.parseLong(getDeptId()) - Long.parseLong(sysDept.getDeptId()));
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Integer getUserTotal() {
		return userTotal;
	}

	public void setUserTotal(Integer userTotal) {
		this.userTotal = userTotal;
	}

	public int getPerson_reward() {
		return person_reward;
	}

	public void setPerson_reward(int person_reward) {
		this.person_reward = person_reward;
	}

	public float getPercentage() {
		return percentage;
	}

	public void setPercentage(float percentage) {
		this.percentage = percentage;
	}
}
